package com.jqbd.service;

import com.jqbd.common.MyJSON;
import com.jqbd.pojo.User;
import com.jqbd.vo.UserData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * Created by Enzo Cotter on 2022/11/10.
 */
public interface UserService {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);
    public MyJSON<User> findAll(Map<String, Object> map);
    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    MyJSON<String> selectnickname();

//    void insertList(List<UserData> cachedDataList);

    void writeExcel(Integer[] ids, HttpServletResponse response);

    void save(MultipartFile file);

    void insertList(List<UserData> cachedDataList);

    Map<Object, Object> stat();

    int deleteList(String str);
}
